In [12]:
import ipyleaflet as leaflet
import ipywidgets as widgets
import random
In [13]:
def get_random_coordinates():
lat = random.uniform(-85, 85)
long = random.uniform(-180, 180)
return [lat, long]
In [14]:
map1 = leaflet.Map()
map1.center = [52.3807305, 13.063064]
map1.zoom = 17
map1
You can find all the ipywidgets and attributes here
Documentation about the widget events
And ipyleaflet's documentation on the Map widget